<aside class="main-sidebar">
    <section class="sidebar">
        <div class="user-panel">
            <div class="pull-left image">
                <img src="{{URL::asset('backend/AdminLTE/dist/img/user2-160x160.jpg')}}" class="img-circle"
                     alt="User Image">
            </div>
            <div class="pull-left info">
                <p>{{Auth::user()->username}}</p>
                <a href="#"><i class="fa fa-circle text-success"></i>{{Auth::user()->create_at}}</a>
            </div>
        </div>
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                    <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i
                            class="fa fa-search"></i>
                    </button>
                </span>
            </div>
        </form>
        <ul class="sidebar-menu">
            <li class="header"></li>
            <li class="treeview">
                <a href="{{URL('admin/index')}}">
                    <i class="fa fa-home"></i> <span>默认首页</span>
                </a>
            </li>
            @if (Auth::user()['users_status'] == 1)
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-laptop"></i>
                    <span>网站管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                    <ul class="treeview-menu">
                        <li class="">
                            <a href="{{URL('admin/rotation')}}"><i class="fa fa-circle-o"></i>轮播图列表</a>
                        </li>
                        <li class="">
                            <a href="{{URL('admin/about')}}"><i class="fa fa-circle-o"></i>小程序设置</a>
                        </li>
                    </ul>
                </a>
            </li>
            @endif
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-laptop"></i>
                    <span>课程管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                    <ul class="treeview-menu">
                        <li class="">
                            <a href="{{URL('admin/dances')}}"><i class="fa fa-circle-o"></i>课程列表</a>
                        </li>
                    </ul>
                    <ul class="treeview-menu">
                        <li class="">
                            <a href="{{URL('admin/courseBooking')}}"><i class="fa fa-circle-o"></i>课程预约</a>
                        </li>
                    </ul>
                </a>
            </li>

            @if (Auth::user()['users_status'] == 1)
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-dashboard"></i>
                    <span>人员管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                    <ul class="treeview-menu">
                        <li class="">
                            <a href="{{URL('admin/user')}}"><i class="fa fa-circle-o"></i>私教列表</a>
                        </li>
                    </ul>
                    <ul class="treeview-menu">
                        <li class="">
                            <a href="{{URL('admin/student')}}"><i class="fa fa-circle-o"></i>学员用户列表</a>
                        </li>
                    </ul>
                </a>
            </li>
            @endif
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
